import request from '/@/utils/request';

/**
 * 
 * @param params 获取参数列表
 * @returns 
 */
export const getList = (params: any) => {
    return request({ url: '/api/system/cache/read/page', params })
}

/**
 * 
 * @param params 获取表
 * @returns 
 */
 export const getTableList = (params: any) => {
    return request({ url: '/api/system/cache/tableList', params })
}

/**
 * 删除缓存
 * @param params 
 * @returns 
 */
 export const remove = (params: any) => {
    return request({ url: '/api/system/cache', method: 'delete', data: params})
}

/**
 * 删除缓存
 * @param params 
 * @returns 
 */
 export const removeCache = (params: any) => {
    return request({ url: '/api/system/cache/removeCache', method: 'post', data: params})
}

/**
 * 删除缓存
 * @param params 
 * @returns 
 */
 export const removeCurrentCache = (params: any) => {
    return request({ url: '/api/system/cache/removeCurrentCache', method: 'post', data: params})
}